package pip.can;

import java.util.HashMap;

import javax.swing.JButton;
import javax.swing.JProgressBar;

public class StaticVariables {
	static int chunkSize; //wielkosc pojedynczego chunka
	static int Classes; //liczba klas ruchu
	static int RoundRobinPar;
	static int topology; //0 - topologia liniowa, //1 - topologia binary tree
	static int Contents; //liczba plikow w repozytorium
	static int linkDelay;
	static int contentSize;
	static double[] Results;
	static Repository Repository;
	static JProgressBar progressBar;
	static int endTime;
	static boolean end;
	static JButton resultBtn;
	static HashMap<String, Integer> pathCap= new HashMap<String, Integer>();
	

	public static void setResultBtn(JButton val){
		StaticVariables.resultBtn = val;
	}
	
	public static void setEnd(boolean val){
		StaticVariables.end = val;
	}
	public static void setEndTime(int endTime){
		StaticVariables.endTime = endTime;
	}
	
	public static void setProgressBar(JProgressBar progressBar){
		StaticVariables.progressBar = progressBar;
	}
	public static void setContentSize(int contentSize){
		StaticVariables.contentSize = contentSize;
	}
	public static void setlinkDelay(int linkDelay)
	{
		StaticVariables.linkDelay = linkDelay;
	}
	public static void setTopology(int topology)
	{
		StaticVariables.topology = topology;
	}
	public static void setChunkSize(int s)
	{
		chunkSize=s;
	}
	public static void setClasses(int c)
	{
		Classes=c;
	}
	public static void setRR(int r)
	{
		RoundRobinPar=r;
	}
	public static void setContents(int c)
	{
		Contents=c;
	}
	public static void setRepository(Repository r)
	{
		Repository=r;
	}
	public static void setResults(double[] res)
	{
		Results=res;
	}
}
